//管理员模型
const {Schema,model} =require('mongoose');

const adminSchema =new Schema({
 
    username:String,
    password:{
        type:String,
        default:'123456'
    },
    isAdmins:{
        type:Boolean,
        default:true
    },
    isDel:{
        type:Boolean,
        default:false
    },
    images:{
        type:String,
        default:'default.jpg'
    }
}, { versionKey: false });


module.exports.adminsModel =model ('adminsModel',adminSchema,'admins');